package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class FetchOrientation {

    private int beginIndex;
    private int endIndex;
    private boolean next;
    private boolean prior;
    private boolean first;
    private boolean last;
    private boolean absolute;
    private boolean relative;
    private SimpleValueSpecification simpleValueSpecification;

    public FetchOrientation(int beginIndex,
                            int endIndex,
                            boolean next,
                            boolean prior,
                            boolean first,
                            boolean last,
                            boolean absolute,
                            boolean relative,
                            SimpleValueSpecification simpleValueSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.next = next;
        this.prior = prior;
        this.first = first;
        this.last = last;
        this.absolute = absolute;
        this.relative = relative;
        this.simpleValueSpecification = simpleValueSpecification;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isNext() {
        return next;
    }

    public boolean isPrior() {
        return prior;
    }

    public boolean isFirst() {
        return first;
    }

    public boolean isLast() {
        return last;
    }

    public boolean isAbsolute() {
        return absolute;
    }

    public boolean isRelative() {
        return relative;
    }

    public SimpleValueSpecification getSimpleValueSpecification() {
        return simpleValueSpecification;
    }

}
